# https://zhuanlan.zhihu.com/p/633760155
# https://www.ctrl.blog/entry/how-to-win10-in-gnome-boxes.html

# 安装
sudo apt install -y gnome-boxes spice-webdavd


# 共享文件, 剪切板
## windows系统
# 1. windows上安装
#   spice-webdavd, 实现虚拟机和宿主机之间存储共享 (https://www.spice-space.org/download/windows/spice-webdavd/spice-webdavd-x86-2.4.msi)
#   spice-guest-tools, 实现提高显示性能（屏幕分辨率)、共享剪贴板 (https://www.spice-space.org/download/windows/spice-guest-tools/spice-guest-tools-latest.exe)
#   virtio-win-gt-x64.msi, 感觉不要也可以  (https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/virtio-win-0.1.240-1/)
# 2. 虚拟机首选项 --> 设备与共享 --> 共享文件夹

## linux系统
#   sudo apt install spice-vdagent spice-webdavd spice-client-gtk

# 镜像迁移
# 1. 将 ~/.local/share/gnome-boxes/images 目录下的镜像，拷贝到新主机同样的位置
# 2. 拷贝配置文件
#   cp -rf ~/.config/libvirt/qemu/*
# 3. 拷贝 ~/.config/gnome-boxes/sources/QEMU Session
